# This code snippet is written in Python
# No specific framework or technology stack mentioned

sequence = input("Введите последовательность скобок:")
sequence = sequence.replace("", "")
while "()" in sequence or "{}" in sequence or "[]" in sequence or "<>" in sequence:
    sequence = sequence.replace("()", "")
    sequence = sequence.replace("{}", "")
    sequence = sequence.replace("[]", "")
    sequence = sequence.replace("<>", "")

if len(sequence) == 0:
    print("TRUE")
else:
    print("FALSE")